﻿@using System.Text.RegularExpressions
@using Orchard.ContentManagement
@using PJS.Bootstrap.Models

@{
    var settings = WorkContext.CurrentSite.As<ThemeSettingsPart>();

    var hRef = settings.UseAsSpa ? Model.Href.Replace(Url.Content("~/") + WorkContext.CurrentCulture.ToLower(), Url.Content("~/") + WorkContext.CurrentCulture.ToLower() + "/#") : Model.Href;
}
<a href="@hRef">@Model.Text</a>
